package yh.design.factorysimple.impl;

import yh.design.common.res.APIResult;
import yh.design.factorysimple.AbstractPayment;

import java.math.BigDecimal;

/**
 * 会员卡支付
 * @author: zyh
 * @date: 2025/4/5 21:56
 **/
public class VipCardPayment extends AbstractPayment {


    //会员卡支付逻辑
   public APIResult pay(BigDecimal amount, String userId, String payCode){
        //1.扣钱会员卡余额
       System.out.println("扣钱会员卡余额");
        //2.记录消费账单记录
       System.out.println("记录消费账单记录");
        //3.会员积分计算
       System.out.println("会员积分计算");
        return APIResult.success();
    }
}
